/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include <文件/file_文件名数据.h>

#include "节点/节点.h"



class C_渲染器配置节点 : public C_节点基类 {
	S_纹理* m_渲染纹理;
public:
	C_渲染器配置节点(S_设备环境& ctx);
	~C_渲染器配置节点();

	S_Props m_分辨率;
	S_Props m_光反弹;
	S_Props m_光采样;
	S_Props m_采样;

	bool	f_update();
	void	f_读取(FILE* f);
	void	f_写入(FILE* f);
};
C_节点基类* f_node_创建渲染器配置节点(S_设备环境& ctx, C_节点树* 子节点树);
C_节点基类* f_node_加载渲染器配置节点(S_设备环境& ctx, FILE* f);
void f_node_保存渲染器配置节点(C_节点基类* n, FILE* f);




class C_渲染输出节点 : public C_节点基类 {
public:
	C_渲染输出节点(S_设备环境& ctx);
	~C_渲染输出节点();

	S_Props m_相对路径;
	S_Props m_颜色通道;
	S_Props m_位深;
	S_Props m_格式;
	

	bool	f_update();
	void	f_读取(FILE* f);
	void	f_写入(FILE* f);

};
C_节点基类* f_node_创建渲染输出节点(S_设备环境& ctx, C_节点树* 子节点树);
C_节点基类* f_node_加载渲染输出节点(S_设备环境& ctx, FILE* f);
void f_node_保存渲染输出节点(C_节点基类* n, FILE* f);




